use io_uring;

fn main() {
    let io_uring = io_uring::IoUring::new(1).unwrap();
    let mut probe = io_uring::Probe::new();
    io_uring.submitter().register_probe(&mut probe).unwrap();

    if probe.is_supported(io_uring::opcode::Read::CODE) {
        println!("Reading is supported!");
    }
    if probe.is_supported(io_uring::opcode::Readv::CODE) {
        println!("Reading vector is supported!");
    }
    if probe.is_supported(io_uring::opcode::Write::CODE) {
        println!("Writing is supported!");
    }
    if probe.is_supported(io_uring::opcode::Writev::CODE) {
        println!("Writing vector is supported!");
    }
    if probe.is_supported(io_uring::opcode::Fsync::CODE) {
        println!("Fsync is supported!");
    }
}
